@(title: String, description: String = null, js: Html = Html(""), jsAsset: String = null, css: Html = Html(""), cssAsset: String = null, showEntryBtn: Boolean = true)(content: Html)


<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

    <title>@title</title>

      <link rel="stylesheet" href="@asset("box/css/core.min.css")">
      <link rel="stylesheet" href="@asset("box/css/app.css")">
      <link rel="stylesheet" href="@asset("box/css/style.css")">
      <link rel="stylesheet" href="@asset("vendor/font-awesome/css/font-awesome.css")">

    @css

    @if(cssAsset != null) {
      <link rel="stylesheet" href="@asset(s"css/$cssAsset.css")">
    }

      <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
      <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
      <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
      <![endif]-->
  </head>

  <body>
    <main>
      @if(showEntryBtn) {
        <a href="/box/" class="btn btn-round btn-info entry-btn">返回主界面</a>
      }
      <div class="main-content">
        @content
      </div>
    </main>

    <!-- REQUIRED JS SCRIPTS -->
    <script src="@asset("vendor/babel-polyfill/dist/polyfill.js")"></script>
    <script src="@asset("vendor/requirejs/require.js")"></script>

    <script src="@asset("vendor/jquery/dist/jquery.js")"></script>
    <!-- <script src="@asset("vendor/bootstrap/dist/js/bootstrap.js")"></script> -->

    <script>
     var lkb = {}; /* private namespace */
    </script>

    @js

    <script>
     require.config({
       baseUrl: '@asset("vendor")',
       paths: {
         'app': '../js'
       }
     });
     require(['app/box/main'], function() {
       @if(jsAsset != null) {
         require(['@(s"app/$jsAsset")']);
       }
     });
    </script>

  </body>
</html>
